<!--
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-09-11 11:15:04
 * @LastEditors: voanit
 * @LastEditTime: 2022-09-11 11:46:21
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      width: 100px;
      height: 100px;
      background-color: red;
      /* animation: 动画名 动画时间 动画延迟时间 动画速度  动画次数  动画方向 */
      animation: move 3s infinite forwards;
    }

    .box2 {
      text-align: center;
    }

    img {
      width: 400px;
      height: 400px;
    }

    /* 起点 */

    .p1 {
      transform: translate(-100%);
      animation: p1 2s forwards;
    }

    .p2 {
      transform: translate(100%);
      animation: p2 2s forwards;
    }

    img {
      transform: scale(0);
      animation: img 2s 4s forwards;
    }

    /* 做动画 */
    @keyframes p1 {
      to {
        transform: translate(0);
      }
    }

    @keyframes p2 {
      to {
        transform: translate(0);
      }

    }

    @keyframes img {
      25% {
        transform: scale(2);
      }

      50% {
        transform: scale(1);
      }

      75% {
        transform: scale(2) rotate(3600deg);
      }

      100% {
        transform: none;
      }

    }

    @keyframes move {

      /* 33.3330% {
        transform: translate(500px);
      }

      66.66660% {
        transform: translate(500px, 500px);
      }

      100% {
        transform: translate(0,0);
      } */
      /* 25% {
        transform: translate(500px);
      }

      50% {
        transform: translate(500px, 500px);
      } */

      /* 70% {
        transform: translate(0, 500px);
      }

      100% {
        transform: translate(0, 0);
      } */

      /* from {
        transform: translate(500px, 500px) rotate(720deg) skew(180deg) scale(0.1);
      }

      50% {
        transform: translate(500px, 500px) rotate(720deg) skew(-180deg) scale(3);
      }

      to {
        transform: translate(500px, 500px) rotate(0)  skew(0) scale(1);
      } */
    }
  </style>
</head>

<body>
  <div class="box2">
    <p class="p1">我是第一个p===left</p>
    <p class="p2">我是第2个p===right</p>
    <img src="https://yanxuan-item.nosdn.127.net/2d1bd31bb617cdebad0ec600a23286d2.png" alt="">
  </div>

</body>

</html>